package top.likeqc.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author likeqc
 * @since 2022-04-10
 */
@Data
public class Student {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Long id;

    /**
     * 用户id
     */
    @ExcelIgnore
    private Long userId;

    /**
     * 学号
     */
    @ExcelProperty("学号")
    private String number;

    /**
     * 学生姓名
     */
    @ExcelProperty("姓名")
    private String name;

    /**
     * 年级id
     */
    @ExcelIgnore
    private Long gradeId;

    /**
     * 班级id
     */
    @ExcelIgnore
    private Long classId;

    /**
     * 年级
     */
    @TableField(exist = false)
    @ExcelIgnore
    private Grade grade;

    /**
     * 班级
     */
    @TableField(exist = false)
    @ExcelIgnore
    private Class aClass;
}
